package com.schoolhelper.post.service;

import com.schoolhelper.post.domain.Post;

import java.util.ArrayList;


public interface PostService {
    public ArrayList<Post> getAllPosts();
    public ArrayList<Post> getAllPostsWithPagination(int page, int size);
    public ArrayList<Post> getPostsByUserId(Long userId);
    public ArrayList<Post> getPostsByUserIdWithPagination(Long userId, int page, int size);
    public Post createPost(Post post);
    boolean likePost(Long postId, Long userId);
    boolean unlikePost(Long postId, Long userId);
    boolean isPostLikedByUser(Long postId, Long userId);
}
